#ifndef _LANGUAGE_H
#define _LANGUAGE_H

#ifdef __cplusplus
extern "C"{
#endif

typedef struct
{
	#define MACRO_LANGUAGE_ITEM(name, text) char * name;
	#include "e_language_def.h"
	#undef MACRO_LANGUAGE_ITEM
} LANGUAGE;

extern LANGUAGE * language;
extern char * loaded_language;

void lang_init();
void lang_free();
const char * lang_get(const char * str_name);
int lang_load(const char * filename);

#ifdef __cplusplus
}
#endif

#endif
